package com.app.model.bean;

import java.io.Serializable;

/**
 * 评价实体
 */

public class Comment implements Serializable {

    // 评价id
    private int id;
    // 评价内容
    private String content;
    // 评价时间
    private long time;
    // 综合评分
    private double score;
    // 被评论用户
    private User beCommentedUser;
    // 评论者
    private User commentUser;
    // 是否匿名
    private boolean anonymity = false;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public User getBeCommentedUser() {
        return beCommentedUser;
    }

    public void setBeCommentedUser(User beCommentedUser) {
        this.beCommentedUser = beCommentedUser;
    }

    public User getCommentUser() {
        return commentUser;
    }

    public void setCommentUser(User commentUser) {
        this.commentUser = commentUser;
    }

    public boolean isAnonymity() {
        return anonymity;
    }

    public void setAnonymity(boolean anonymity) {
        this.anonymity = anonymity;
    }
}
